package org.cunamas.core.dto.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.cunamas.core.dto.ReporteTotalNiniosDocDto;
import org.springframework.jdbc.core.RowMapper;

public class ReporteTotalNiniosDocMapper  implements
		RowMapper<ReporteTotalNiniosDocDto> {

	public ReporteTotalNiniosDocDto mapRow(ResultSet rs, int row)
			throws SQLException {
		ReporteTotalNiniosDocDto dto = new ReporteTotalNiniosDocDto(); 
		dto.setTotal(rs.getInt(1));
		dto.setTotPartNac(rs.getInt(2));
		dto.setTotDni(rs.getInt(3));
		dto.setTotCex(rs.getInt(4));
		dto.setTotSinReg(rs.getInt(5));
		dto.setPeriodo(rs.getString(6));
		return dto;
	}

}
